﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" CodeBehind="Insert.aspx.cs" Inherits="SRS_CP.Insert" %>
<asp:Content ID="headContent" ContentPlaceHolderID="head" Runat="Server">
    <link href="../../../BaseSRS.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 
<div class="SRS_PageLayout">
    <asp:DynamicDataManager ID="DynamicDataManager1" runat="server" AutoLoadForeignKeys="True">
        <DataControls>
        <asp:DataControlReference ControlID="FormView1" />
        </DataControls>
    </asp:DynamicDataManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:DynamicValidator runat="server" ID="DetailsViewValidator" ControlToValidate="FormView1" Display="None" Cssclass="SRSValidator" />
            <asp:FormView runat="server" ID="FormView1" DataSourceID="DetailsDataSource" DefaultMode="Insert" OnItemCommand="FormView1_ItemCommand" OnItemInserted="FormView1_ItemInserted" RenderOuterTable="false">
            <InsertItemTemplate>
                <table class="SRSInsertRequest" width="650px"><tr><td align="left"><table width="508px"><tr><td width="100px">Request Type</td><td>
                    <asp:DynamicControl ID="RequestTypeDynamicControl" runat="server" DataField="RequestType" Mode="Insert" ValidationGroup="Insert" Visible="True" UIHint="RequestType" /></td></tr><tr><td>First Name</td><td>
                    <asp:DynamicControl ID="FirstNameDynamicControl" runat="server" DataField="FirstName" Mode="Insert" ValidationGroup="Insert" /></td></tr><tr><td>Last Name</td><td>
                    <asp:DynamicControl ID="LastNameDynamicControl" runat="server" DataField="LastName" Mode="Insert" ValidationGroup="Insert" /></td></tr><tr><td>Email Address</td><td>
                    <asp:DynamicControl ID="EmailAddressDynamicControl" runat="server" DataField="EmailAddress" Mode="Insert" ValidationGroup="Insert" /></td></tr><tr><td>Home Phone</td><td>
                    <asp:DynamicControl ID="HomePhoneDynamicControl" runat="server" DataField="HomePhone" Mode="Insert" ValidationGroup="Insert" /></td></tr><tr><td>Work Phone</td><td>
                    <asp:DynamicControl ID="WorkPhoneDynamicControl" runat="server" DataField="WorkPhone" Mode="Insert" ValidationGroup="Insert" /></td></tr><tr><td>Cell Phone</td><td>
                    <asp:DynamicControl ID="CellPhoneDynamicControl" runat="server" DataField="CellPhone" Mode="Insert" ValidationGroup="Insert" /></td></tr><tr><td colspan="2"><br />
                    <asp:DynamicControl ID="RequestDetailsDynamicControl" runat="server" DataField="RequestDetails" Mode="Insert" ValidationGroup="Insert" /></td></tr><tr><td colspan="2" align="left"><br />
                <img id="Img1" runat="server" src="../../../Images/iconsets/iconic/1338159263_plus.png" alt="Submit" />
                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Insert" Text="Submit" CausesValidation="True"/>&nbsp;&nbsp;
                <img id="Img2" runat="server" src="../../../Images/iconsets/iconic/1338159275_denied.png" alt="Cancel" />
                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Cancel" Text="Cancel" CausesValidation="false" />
                </td></tr></table></td></tr</table>
                </InsertItemTemplate>
            </asp:FormView>
            <asp:EntityDataSource ID="DetailsDataSource" runat="server" EnableInsert="true" EnableViewState="true" EnableDelete="true" />
        </ContentTemplate>
    </asp:UpdatePanel>
</div>
</asp:Content>
